package com.foreknow.demo11;

public class Duck extends Animal {

    public Duck(String name, int legNum) {
        super(name, legNum);
    }

    @Override
    public void shout() {
//        this.setName("加菲狗");
        System.out.println(this.getName()+"汪汪汪");
    }

}
